<!--#
 @version 0.2
#-->

<p align="center">
<a href="?clear_log=1" onClick="return confirm('<#LANG_ARE_YOU_SURE#>')"><#LANG_CLEAR_LOG#></a>
|
<a href="?optimize_log=1" onClick="return confirm('<#LANG_ARE_YOU_SURE#>')"><#LANG_OPTIMIZE_LOG#></a>
</p>

<table width=100% border=0><tr>
<td valign=top>
<!-- results -->
[#if RESULT#]
<!-- paging -->
[#if PAGES#]
<table border=0 align=center>
<td align=right><b><#LANG_PAGES#>:</b>&nbsp;</td>
[#begin PREVPAGE#]<td><a href="?data_source=<#DATA_SOURCE#>&view_mode=<#VIEW_MODE#>&mode=<#MODE#>&save_qry=1&page=[#NUM#]">&lt;&lt;&lt;</a></td>[#end PREVPAGE#]
<td>
[#begin PAGES#]
[#if !SELECTED#]<a href="?data_source=<#DATA_SOURCE#>&view_mode=<#VIEW_MODE#>&mode=<#MODE#>&save_qry=1&page=[#NUM#]">[#else#]<b>[#endif#][#NUM#]</b></a>
[#end PAGES#]
</td>
[#begin NEXTPAGE#]<td><a href="?data_source=<#DATA_SOURCE#>&view_mode=<#VIEW_MODE#>&mode=<#MODE#>&save_qry=1&page=[#NUM#]">&gt;&gt;&gt;</a></td>[#end NEXTPAGE#]
</table>
[#endif PAGES#]
<!-- / paging -->
<!-- search results (list) -->
<form action="?" method="post" name="frmList_gpslog" style="padding:0px">
<table border=0 cellpadding=5 cellspacing=1 bgcolor="#000000" align=center>
<tr>
 <td align=center bgcolor="#AAAAAA">
 <b><#LANG_ADDED#></b>
 </td>
 <td align=center bgcolor="#AAAAAA">
 <b><#LANG_LATITUDE#></b>
 </td>
 <td align=center bgcolor="#AAAAAA">
 <b><#LANG_LONGITUDE#></b>
 </td>
 <td align=center bgcolor="#AAAAAA">
 <b><#LANG_SPEED#></b>
 </td>
 <td align=center bgcolor="#AAAAAA">
 <b><#LANG_ACCURACY#></b>
 </td>
 <td align=center bgcolor="#AAAAAA">
 <b><#LANG_BATTERY_LEVEL#></b>
 </td>
 <td align=center bgcolor="#AAAAAA">
 <b><#LANG_CHARGING#></b>
 </td>
 <td align=center bgcolor="#AAAAAA">
 <b><#LANG_DEVICE#></b>
 </td>
[#if !IS_SET_DEVICE_ID#]
 <td align=center bgcolor="#AAAAAA">
 <b><#LANG_DEVICE#></b>
 </td>
[#endif IS_SET_DEVICE_ID#]
[#if !IS_SET_LOCATION_ID#]
 <td align=center bgcolor="#AAAAAA">
 <b><#LANG_LOCATION#></b>
 </td>
[#endif IS_SET_LOCATION_ID#]
<td bgcolor="#AAAAAA">&nbsp;</td>
</tr>
[#begin RESULT#]
<tr >
 <td
   align=center
   bgcolor="[#if NEW_COLOR#]#CCCCCC[#else#]#FFFFFF[#endif#]">
  [#if ADDED!=""#]
   [#ADDED#]
  [#else#]
   &nbsp;
  [#endif#]
 </td>
 <td
   align=center
   bgcolor="[#if NEW_COLOR#]#CCCCCC[#else#]#FFFFFF[#endif#]">
  [#if LAT!=""#]
   [#LAT#]
  [#else#]
   &nbsp;
  [#endif#]
 </td>
 <td
   align=center
   bgcolor="[#if NEW_COLOR#]#CCCCCC[#else#]#FFFFFF[#endif#]">
  [#if LON!=""#]
   [#LON#]
  [#else#]
   &nbsp;
  [#endif#]
 </td>
 <td
   align=center
   bgcolor="[#if NEW_COLOR#]#CCCCCC[#else#]#FFFFFF[#endif#]">
  [#if SPEED!=""#]
   [#SPEED#]
  [#else#]
   &nbsp;
  [#endif#]
 </td>
 <td
   align=center
   bgcolor="[#if NEW_COLOR#]#CCCCCC[#else#]#FFFFFF[#endif#]">
  [#if ACCURACY!=""#]
   [#ACCURACY#]
  [#else#]
   &nbsp;
  [#endif#]
 </td>

 <td
   align=center
   bgcolor="[#if NEW_COLOR#]#CCCCCC[#else#]#FFFFFF[#endif#]">
  [#if BATTLEVEL!=""#]
   [#BATTLEVEL#]
  [#else#]
   &nbsp;
  [#endif#]
 </td>
 <td
   align=center
   bgcolor="[#if NEW_COLOR#]#CCCCCC[#else#]#FFFFFF[#endif#]">
  [#if CHARGING!=""#]
   [#CHARGING#]
  [#else#]
   &nbsp;
  [#endif#]
 </td>
 <td
   align=center
   bgcolor="[#if NEW_COLOR#]#CCCCCC[#else#]#FFFFFF[#endif#]">
  [#if DEVICEID!=""#]
   [#DEVICEID#]
  [#else#]
   &nbsp;
  [#endif#]
 </td>
[#if "<#IS_SET_DEVICE_ID#>"!="1"#]
 <td
   align=center
   bgcolor="[#if NEW_COLOR#]#CCCCCC[#else#]#FFFFFF[#endif#]">
  [#if DEVICE_TITLE!=""#]
   <b>[#DEVICE_TITLE#]</b>
  [#else#]
   &nbsp;
  [#endif#]
 </td>
[#endif IS_SET_DEVICE_ID#]
[#if "<#IS_SET_LOCATION_ID#>"!="1"#]
 <td
   align=center
   bgcolor="[#if NEW_COLOR#]#CCCCCC[#else#]#FFFFFF[#endif#]">
  [#if LOCATION_TITLE!=""#]
   <b>[#LOCATION_TITLE#]</b>
  [#else#]
   &nbsp;
  [#endif#]
  <a href="http://maps.googleapis.com/maps/api/staticmap?center=[#LAT#],[#LON#]&size=512x512&maptype=hybrid&sensor=false&zoom=14&markers=[#LAT#],[#LON#]" target=_blank><#LANG_MAP#></a>
 </td>
[#endif IS_SET_LOCATION_ID#]
 <td bgcolor="[#if NEW_COLOR#]#CCCCCC[#else#]#FFFFFF[#endif#]">
  <table border=0>
  [#if "<#ACTION#>"=="admin"#]
   <td bgcolor="[#if NEW_COLOR#]#CCCCCC[#else#]#FFFFFF[#endif#]" align=center>
    <a href="?data_source=<#DATA_SOURCE#>&view_mode=delete_gpslog&id=[#ID#]" onClick="return confirm('<#LANG_ARE_YOU_SURE#>')"><#LANG_DELETE#></a>
   </td>
  [#endif ACTION#]
  </table>
 </td>
</tr>
[#end RESULT#]
</table>
<input type="hidden" name="data_source" value="<#DATA_SOURCE#>">
<input type="hidden" name="view_mode" value="multiple_gpslog">
</form>
<!-- / search results (list) -->
<!-- paging -->
[#if PAGES#]
<table border=0 align=center>
<td align=right><b><#LANG_PAGES#>:</b>&nbsp;</td>
[#begin PREVPAGE#]<td><a href="?data_source=<#DATA_SOURCE#>&view_mode=<#VIEW_MODE#>&mode=<#MODE#>&save_qry=1&page=[#NUM#]">&lt;&lt;&lt;</a></td>[#end PREVPAGE#]
<td>
[#begin PAGES#]
[#if !SELECTED#]<a href="?data_source=<#DATA_SOURCE#>&view_mode=<#VIEW_MODE#>&mode=<#MODE#>&save_qry=1&page=[#NUM#]">[#else#]<b>[#endif#][#NUM#]</b></a>
[#end PAGES#]
</td>
[#begin NEXTPAGE#]<td><a href="?data_source=<#DATA_SOURCE#>&view_mode=<#VIEW_MODE#>&mode=<#MODE#>&save_qry=1&page=[#NUM#]">&gt;&gt;&gt;</a></td>[#end NEXTPAGE#]
</table>
[#endif PAGES#]
<!-- / paging -->
[#else RESULT#]
<p align=center>
<font color="red"><#LANG_NO_RECORDS_FOUND#></font>
</p>
[#endif RESULT#]
<!-- / results -->
</td></tr></table>
